package cn.misterhou.test.beans;


import cn.misterhou.test.aop.LogPointCut;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy
public class BeanConfiguration {

    @Bean
    public User getUser() {
        return new User(1, "张三");
    }

    @Bean
    public LogPointCut getLogPointCut() {
        return new LogPointCut();
    }
}
